from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
import time

testCase = "DBshop009-退货管理搜索退货订单流程"
#进入后台销售管理退货管理
firefox=openBrowser(url)
firefox.get(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,'销售管理','退货管理')
# 断言：是否有退货订单的处理退货按键
try:
    firefox.find_element_by_link_text("处理退货")
    writeLog("%s 测试通过"%testCase)
except:
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)
firefox.quit()
